package com.oig.sys.base.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


/**
 * @author wuxl
 */
@Getter
@Setter
@ToString
@Entity
@Table(name = "tb_currency")
public class TbCurrency implements Serializable {

	/**
	 */
	@Id
	@Column(name = "code", nullable = false)
	private String code;

	/**
	 */
	@Column(name = "name", length = 40)
	private String name;

	/**
	 */
	@Column(name = "en_name", length = 64)
	private String enName;

	/**
	 */
	@Column(name = "status")
	private String status;

	/**
	 * 默认单价精度
	 */
	@Column(name = "price_precision")
	private Integer pricePrecision;

	/**
	 * 默认金额精度
	 */
	@Column(name = "amount_precision")
	private Integer amountPrecision;

	/**
	 * 符号
	 */
	@Column(name = "symbol")
	private String symbol;
}
